﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ryPage.aspx.cs" Inherits="ryPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <style type="text/css">
        body
        {
            margin: 0 auto;
            text-align:center;
            font-size: 12px;
        }
        table
        {
            border-collapse: collapse;
        }
        #divContainer
        {
        	margin: 0 auto;
            text-align:left;
            width: 770px;
        }
        #divTitle1
        {
            height: 25px;
            line-height: 25px;
            vertical-align: middle;
            background: url('images/bg_Title.jpg') repeat-x bottom;
        }
        .divTitle
        {
            height: 30px;
            line-height: 30px;
            vertical-align: middle;
        }
        .divTitle span
        {
            font-weight: bold;
        }
        #tblEdit
        {
            font-size: 12px;
            line-height: 30px;
        }
        /*GridView的样式*/#gvRY, #gvRY td, #gvRY th
        {
            line-height: 19px;
            border: solid 1px black;
        }
        #gvRY td table td
        {
            border: none;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div id="divContainer">
        <div class="divTitle">
            <span>现有人员信息一览&gt;&gt;</span></div>
        <div id="divBrowse" style="height: 235px;">
            <asp:GridView ID="gvRY" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                Font-Size="12px" PageSize="8" Width="100%" DataKeyNames="zgId" 
                OnSelectedIndexChanging="gvRY_SelectedIndexChanging" 
                onpageindexchanging="gvRY_PageIndexChanging" onrowdeleting="gvRY_RowDeleting">
                <RowStyle HorizontalAlign="Left" />
                <Columns>
                    <asp:BoundField DataField="zgId" HeaderText="人员编号">
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle Width="55px" HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="zgName" HeaderText="人员姓名">
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="zgSex" HeaderText="人员性别">
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle Width="55px" HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="zgPwd" HeaderText="密码">
                        <HeaderStyle HorizontalAlign="Left" />
                        <ItemStyle Width="100px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="bMana" HeaderText="管理员">
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" Width="55px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="bWork" HeaderText="在职否">
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" Width="55px" />
                    </asp:BoundField>
                    <asp:CommandField ShowSelectButton="True" ShowDeleteButton="True">
                        <HeaderStyle HorizontalAlign="Left" />
                        <ItemStyle Width="55px" />
                    </asp:CommandField>
                </Columns>
                <FooterStyle HorizontalAlign="Left" />
                <SelectedRowStyle BackColor="#CCFFFF" />
                <HeaderStyle HorizontalAlign="Left" />
            </asp:GridView>
        </div>
        <div class="divTitle">
            <span>维护已有人员信息或添加新的人员信息&gt;&gt;</span>
        </div>
        <div id="divEdit" style="height: 225px;">
            <table id="tblEdit">
                <tr>
                    <td>
                        姓名：
                    </td>
                    <td>
                        <asp:TextBox ID="txtName" Width="120px" runat="server" Font-Size="12px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        性别：
                    </td>
                    <td>
                        <asp:DropDownList ID="dropSex" runat="server">
                            <asp:ListItem Value="1">男</asp:ListItem>
                            <asp:ListItem Value="0">女</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        密码：
                    </td>
                    <td>
                        <asp:TextBox ID="txtPwd" Width="120px" runat="server" Font-Size="12px"></asp:TextBox>
                    </td>
                </tr>                
                <tr>
                    <td>
                        管理员：
                    </td>
                    <td>
                        <asp:DropDownList ID="dropManager" runat="server" >
                            <asp:ListItem Value="0">否</asp:ListItem>
                            <asp:ListItem Value="1">是</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        在职否：
                    </td>
                    <td>
                        <asp:DropDownList ID="dropWroking" runat="server">
                            <asp:ListItem Value="1">是</asp:ListItem>
                            <asp:ListItem Value="0">否</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Button ID="btnRefur" runat="server" Text="添加" OnClick="btnRefur_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnCancel" runat="server" Text="取消" onclick="btnCancel_Click" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
